import axiosInstance, { AxiosResponseProps } from '@/uitls/request';
// const Apiurl = 'https://www.joinca.com'
// const Apiurl = 'http://39.105.28.42:9066'
// const Apiurl = 'http://192.168.0.31:9066'
const Apiurl = ''

export const apiAddDoc = query => {
    return axiosInstance({
        url: `${Apiurl}/api/subUser/large/scale/add`,
        method: 'post',
        // params: query,
		data:query,
        headers:{
            "Content-Type":'application/json;charset=UTF-8'
        }
    });
};

export const listApi = (query)=>{
    return axiosInstance(
        {
            url: `${Apiurl}/api/product?tem=${new Date().getTime()}`,
            method:'get',
            params:query
        }
    )
}

export const apisms = query => {
    return axiosInstance({
        url: `${Apiurl}/sendCode`,
        method: 'post',
        params: query,
        headers:{
            "Content-Type":'application/json;charset=UTF-8'
        }
    });
};
//授权
export const getList = (query)=>{
    return axiosInstance(
        {
            url: `${Apiurl}/login`,
            method: 'post',
            params: query,
            headers:{
                "Content-Type":'application/json;charset=UTF-8'
            }
        }
    )
}
// 取消授权
export const getCancel = (query)=>{
    return axiosInstance(
        {
            url: `${Apiurl}/unAuthorize`,
            method:'get',
            params:query
            
        }
    )
}

